package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 盘点计算记录对象 zn_profit_history
 * 
 * @author nexiaozi
 * @date 2022-10-19
 */
public class ZnProfitHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 0正在计算 1计算完成 2计算异常 */
    @Excel(name = "0正在计算 1计算完成 2计算异常")
    private Integer state;

    /** 结果 */
    @Excel(name = "结果")
    private String result;

    /** 盘点id */
    @Excel(name = "盘点id")
    private Long profitId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }
    public void setProfitId(Long profitId) 
    {
        this.profitId = profitId;
    }

    public Long getProfitId() 
    {
        return profitId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("state", getState())
            .append("result", getResult())
            .append("profitId", getProfitId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
